import os

DEBUG = os.environ['SERVER_SOFTWARE'].startswith('Dev')
MIDDLEWARE_CLASSES = (
	'django.middleware.common.CommonMiddleware',
	'django.middleware.http.ConditionalGetMiddleware',
#	'app.middleware.RedirectToHTTPSMiddleware',
#	'app.middleware.AddHSTSHeaderMiddleware',
	'app.middleware.AddUserToRequestMiddleware',
#	'app.middleware.PropagateExceptionMiddleware',
)
ROOT_URLCONF = 'app.urls'
TEMPLATE_CONTEXT_PROCESSORS = (
	'django.core.context_processors.request',
)
TEMPLATE_DIRS = (
	os.path.join(os.path.dirname(__file__), 'templates').replace('\\','/'),
)
TEMPLATE_LOADERS = (
	'django.template.loaders.filesystem.load_template_source',
)

MEDIA_URL = '/static/'
